<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>管理员登录</title>
<link href="contents/css/login.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="scripts/Jikey.js"></script>
<script src="plugins/easyui/jquery.min.js"></script>
<script type="text/javascript">
/* 	$(function(){
		J.onBlurText('lab_uname');
		J.onBlurText('lab_pwd');
	}); */

	function login(){
		var loginUser = $('#lab_uname').val();
		var password = $('#lab_pwd').val();
		if(loginUser==''){
			$('#lab_username_err').css('display','inline');
			return false;
		}else{
			$('#lab_username_err').css('display','none');
		}
		if(password==''){
			$('#lab_pwd_err').css('display','inline');
			return false;
		}else{
			$('#lab_pwd_err').css('display','none');
		}
		return true;
	}
</script>
</head>
<body>
	<div id="main">
		<div id="wrapper">
			<form action="login.do" onsubmit="return login();" method="post" id="form1">
				<div id="div_sysname">江苏新程条码系统</div>
				<ul id="ui_cont">
					<li>
						<label class="lb" for="lab_uname">用户名</label>
						<input name="userName" id="lab_uname" type="text" class="ip" value="" maxlength="18"/>
						<label id="lab_username_err" class="loginerr" for="lab_uname">*必填</label>
					</li>
					<li>
						<label class="lb" for="lab_pwd">密码</label>
						<input name="password" id="lab_pwd" type="password" class="ip" value="" maxlength="20"/>
						<label id="lab_pwd_err" class="loginerr" for="lab_uname">*必填</label>
					</li>
						<label id="lab_login_error" class="loginerr" style="display:inline;">${loginerr}</label>
					<li>
						<span>
							<input id="butt_login"  type="image" src="contents/images/login_butt.png" title="登录系统"/>
						</span>
					</li>
				</ul>
				<p id="copy">Version 2.0 Copyright &copy; 2010</p>				
			</form>
		</div>
	</div>
</body>
</html>